//
//  JQnewsModel.m
//  News
//
//  Created by lanou3g on 15/11/5.
//  Copyright © 2015年 songhaowen. All rights reserved.
//

#import "JQnewsModel.h"

@implementation JQnewsModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

}


-(void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.digest forKey:@"digest"];
    [aCoder encodeObject:self.docid forKey:@"docid"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.imgsrc forKey:@"imgsrc"];
    [aCoder encodeObject:self.ptime forKey:@"ptime"];
    [aCoder encodeObject:self.imgextra forKey:@"imgextra"];
    [aCoder encodeObject:self.photosetID forKey:@"photosetID"];
}
-(id)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        self.digest = [aDecoder decodeObjectForKey:@"digest"];
        self.docid = [aDecoder decodeObjectForKey:@"docid"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.imgsrc = [aDecoder decodeObjectForKey:@"imgsrc"];
        self.ptime = [aDecoder decodeObjectForKey:@"ptime"];
        self.imgextra = [aDecoder decodeObjectForKey:@"imgextra"];
        self.photosetID = [aDecoder decodeObjectForKey:@"photosetID"];
    }
    return self;
}

-(NSString *)description{
    return [NSString stringWithFormat:@"%@%@%@%@%@%@%@",self.digest ,self.docid ,self.title ,self.imgsrc ,self.ptime ,self.imgextra ,self.photosetID ];
}

@end
